# -*- coding:utf-8 -*-
from flask import render_template,redirect
from . import main


@main.route('/')
def index():
    return render_template(
        'main/index.html'
    )


@main.route('/webdocs')
def webdocs():
    return render_template(
        'main/webdocs.html'
    )


@main.route('/fpgadocs')
def fpgadocs():
    return render_template(
        'main/fpgadocs.html'
    )


@main.route('/algorithm')
def algorithm():
    return render_template(
        'main/algorithm.html'
    )


@main.route('/about')
def about():
    return render_template(
        'main/about.html',
    )

# use redirect to fix localhost bug
@main.route('/hmx')
def admin():
    return redirect('https://www.hmxxts.com/admin/')